<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>字典管理</title>
		<script type='text/javascript' src='../../dwr/engine.js'></script>
		<script type='text/javascript' src='../../dwr/util.js'></script>
		<script type='text/javascript' src='../../dwr/interface/ConfigAction.js'></script>
		<script src="../js/zjpii_common.js"></script>
		<script src="../js/acl_util.js"></script>
		<script src="../js/dictionary_ajax.js"></script>
		<script type="text/javascript" src="../components/folder-tree-static/js/folder-tree-static.js"></script>
		<script type="text/javascript" src="../components/folder-tree-static/js/context-menu.js"></script>
		<link rel="stylesheet" href="../components/folder-tree-static/css/folder-tree-static.css" type="text/css">
		<link rel="stylesheet" href="../components/folder-tree-static/css/context-menu.css" type="text/css">
		<link href="../themes/default/css/config.css" rel="stylesheet" type="text/css">
	</head>
	<body onload="ajaxTreeInit();">
	<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" >
		<tr >
			<td valign="top" height="100%"><!--height 100% -->
				<!--left begin-->
				<table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0">
					<tr>
						<td height="100%">
							<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" class="table">
								<tr>
									<th  align="left"><h3><img src="../themes/default/images/Contacts.gif" width="16" height="16">字典管理</h3></th>
								</tr>
								<tr>
								  <td>
								  &nbsp;&nbsp;<img src="../themes/default/images/shou.gif" width="15" height="14" /><a href="javascript:collapseAll('ajax_tree');">收缩</a>
								  &nbsp;&nbsp;<img src="../themes/default/images/shou2.gif" width="16" height="16" /><a href="javascript:expandAll('ajax_tree');" >展开</a>
								  </td>
								</tr>
								<tr>
									<td height ="90%">
										<div id="dic_tree" style="FONT-SIZE: 13px; OVERFLOW: auto; WIDTH: 250px; HEIGHT:100%"></div>
										<ul id="contextMenu">
											<li><a href="#" onclick="addNewNode(event);return false">添加</a></li>
											<li><a href="#" onclick="editNode(event);return false">修改</a></li>
											<li><a href="#" onclick="deleteNode(event);return false">删除</a></li>
										</ul>
									</td>
								</tr>
								<tr>
								  <td>&nbsp;</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<!--left end-->
			</td>
			<td valign="top" align="left" width="100%" height="100%">
				<div id="div_dic_detail"></div>
			</td>
		</tr>
	</table>
	
<!--next html is hidden -->
<div id="div_dic_op" style="display:none">
	<!-- button begin -->
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr>
			<td style="padding-bottom: 2px;" id="op_button">
				<input title="Save [Alt+S]" accessKey="S" class="button"  onclick="return saveDic();" type="button" name="add" value="  保存  " > 
				<input title="Close [Alt+C]" accessKey="C" class="button" onclick="setDicdetail('');" type="button" name="cencel" value="  关闭  "></td>
			<td align="right" nowrap><span class="required">*</span> 必需</td>
			<td align='right'></td>
		</tr>
	</table>
	
	<!-- button end -->
	<!-- op_html begin -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
					<tr>
						<th align="left" colspan="4"><h3 id="dicop_title"><img src="../themes/default/images/Contacts.gif" width="16" height="16">添加字典信息</h3></th>
					</tr>
						<tr>
						<td  width='15%'>字典名称:</td>
						<td  width='35%'><input type="text" name="title" class="input" onblur="this.className='pass';" onfocus="this.className='lave';" size="25"> <span class="required">*</span></td>
						<td>上级字典名称:</td>
						<td  width='35%'><input type="text" name="pTitle" class="input_readonly" readOnly size="25"></td>
					</tr>
					<tr>
						<td>字典关键字:</td>
						<td  width='35%'><input type="text" name="keytype" class="input" onblur="this.className='pass';" onfocus="this.className='lave';" size="25"> <span class="required">*</span></td>
						<td>字典值:</td>
						<td  width='35%'><input type="text" name="code" value="0" class="input" onblur="this.className='pass';" onfocus="this.className='lave';" size="25"> <span class="required">*</span></td>
					</tr>
					<tr>
						<td>字典次序:</td>
						<td colspan="2" width='35%'><input type="text" name="dicorder" value="0" class="input" onblur="this.className='pass';" onfocus="this.className='lave';" size="25"> <span class="required">*</span></td>
					</tr>
					<tr>
					  	<td colspan="2"><br><font color="red">&nbsp;注：[类别]的字典值为-1</font></td>
					</tr>
					<tr>
					  <td >&nbsp;</td>
					  <td >
				          <input type="hidden" name="id">
				          <input type="hidden" name="parentid">
					  </td>
					  <td >&nbsp;</td>
					  <td >&nbsp;</td>
					</tr>
				</table>
			</td>
		</tr>	
	</table>
	<!-- op_html end -->
</div>
<!-- edit detail -->
<div id="div_hidden_edit" style="display:none">
	<input title="Save [Alt+S]" accessKey="S" class="button"  onclick="return saveDic();" type="button" name="edit" value="  保存  " > 
	<input title="Cancel [Alt+C]" accessKey="C" class="button" onclick="setDicDetailHtml();" type="button" name="cencel" value="  取消  ">
</div>
<div id="div_hidden_detail" style="display:none">
	<input title="Edit [Alt+E]" accessKey="E" class="button"  onclick="setDicEditHtml();" type="button" name="edit" value="  编辑  " > 
	<input title="Close [Alt+C]" accessKey="C" class="button" onclick="setDicdetail('');" type="button" name="cencel" value="  关闭  ">
</div>
	</body>
</html>
